Objects Reference

directX::add_player

Prototype

int add_player(char *name,DWORD dpid,void *data)

Parameters

Parameter Type Description
name char * player name
dpid DWORD directplay player id
data void * pointer to specific player data

Return Value

Returns the player index into the players array for the added player, and -1 if player could not be added.

Remarks

This function adds a new player to the current game.